package cn.doctor.assistant.pad.entity;

import java.io.Serializable;

/**
 * Created by jiaolf on 2016/4/26.
 */
public class ContactInfo implements Serializable{
    private String phone;
    private String name;
    private String picture; // 头像url
    private String sex;
    private String address;
    private String birthday;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public static final int SEX_BOY = 1;
    public static final int SEX_GIRL = 2;
    public String getGender() {
        if(sex.equals("1")) {
            return "男";
        }else if (sex.equals("2")) {
            return "女";
        }else {
            return "";
        }
    }
}
